package com.ruoyi.common.minio.properties;

import lombok.Data;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Scope;

@Data
//@Scope(value = ConfigurableBeanFactory.SCOPE_PROTOTYPE,proxyMode = ScopedProxyMode.TARGET_CLASS) // 设置为多例
@Scope(value = ConfigurableBeanFactory.SCOPE_SINGLETON)
@ConfigurationProperties(prefix = "my-minio")
public class MinioProperties {
    private Boolean enabled;
    private String endPoint;
    private String fileFolder;
    private String bucketName;
    private String accessKey;
    private String secretKey;
}
